package cn.tedu._07springaop.egaop02;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class CartServiceTest {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu._07springaop");
        CartServiceImpl cartService = context.getBean(CartServiceImpl.class);
        cartService.addCart("添加购物车");

    }
}
